import * as vscode from 'vscode';
import { activateDebug } from './activate-debug';
import { installCommand } from './command';
import { installExplorer } from './explorer';
import { global } from './global';
import { installWebview } from './webview';

export function activate(context: vscode.ExtensionContext) {
  installCommand(context);
  installExplorer(context);
  installWebview(context);
  asyncActivate(context);
}

async function asyncActivate(context: vscode.ExtensionContext) {
  await global.init(context);
  activateDebug(context);
}

export function deactivate() {
  // nothing to do
}
